import config from "@/config"
import http from "@/utils/request"

export default {
	sys: {
		getWebsite: {
			url: `${config.API_URL}/adminapi/setting.web.web_setting/getWebsite`,
			name: "获取网站信息",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		getCopyright: {
			url: `${config.API_URL}/adminapi/setting.web.web_setting/getCopyright`,
			name: "获取备案信息",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		setWebsite: {
			url: `${config.API_URL}/adminapi/setting.web.web_setting/setWebsite`,
			name: "设置网站信息",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		setCopyright: {
			url: `${config.API_URL}/adminapi/setting.web.web_setting/setCopyright`,
			name: "设置版权备案",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
	storage: {
		lists: {
			url: `${config.API_URL}/adminapi/setting.storage/lists`,
			name: "获取存储引擎列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		setup: {
			url: `${config.API_URL}/adminapi/setting.storage/setup`,
			name: "获取备案信息",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/setting.storage/detail`,
			name: "获取备案信息",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
	weapp: {
		getConfig: {
			url: `${config.API_URL}/adminapi/channel.mnp_settings/getConfig`,
			name: "获取小程序配置",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		setConfig: {
			url: `${config.API_URL}/adminapi/channel.mnp_settings/setConfig`,
			name: "设置小程序配置",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
	factory:{
		lists: {
			url: `${config.API_URL}/adminapi/setting.factory/lists`,
			name: "获取工厂列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/setting.factory/edit`,
			name: "修改工厂",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/setting.factory/add`,
			name: "添加工厂",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/setting.factory/delete`,
			name: "删除工厂",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		deleteAll: {
			url: `${config.API_URL}/adminapi/setting.factory/deleteAll`,
			name: "删除工厂",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		update_status: {
			url: `${config.API_URL}/adminapi/setting.factory/update_status`,
			name: "修改工厂状态",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
	},
    brand:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopBrand/lists`,
			name: "获取品牌列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopBrand/add`,
            name: "添加品牌",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopBrand/edit`,
			name: "修改品牌",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopBrand/delete`,
			name: "删除品牌",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    needle:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopNeedleSeed/lists`,
			name: "获取针种列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopNeedleSeed/add`,
            name: "添加针种",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopNeedleSeed/edit`,
			name: "修改针种",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopNeedleSeed/delete`,
			name: "删除针种",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    technology:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopTechnology/lists`,
			name: "获取工艺列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopTechnology/add`,
            name: "添加工艺",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopTechnology/edit`,
			name: "修改工艺",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopTechnology/delete`,
			name: "删除工艺",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    unit:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsUnit/lists`,
			name: "获取单位列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopGoodsUnit/add`,
            name: "添加单位",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsUnit/edit`,
			name: "修改单位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsUnit/delete`,
			name: "删除单位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    gongXu:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopProcess/lists`,
			name: "获取工序列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopProcess/add`,
            name: "添加工序",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopProcess/edit`,
			name: "修改工序",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopProcess/delete`,
			name: "删除工序",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    color:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopColour/lists`,
			name: "获取颜色列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopColour/add`,
            name: "添加颜色",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopColour/edit`,
			name: "修改颜色",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopColour/delete`,
			name: "删除颜色",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    material:{
        lists: {
			url: `${config.API_URL}/adminapi/material.shopMaterialCate/lists`,
			name: "获取毛种列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/material.shopMaterialCate/add`,
            name: "添加毛种",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/material.shopMaterialCate/edit`,
			name: "修改毛种",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/material.shopMaterialCate/delete`,
			name: "删除毛种",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    getComponent: {
        lists:{
            url: `${config.API_URL}/adminapi/shop.shopGoodsComponent/lists`,
            name: "获取成分列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsComponent/add`,
			name: "添加成分",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsComponent/edit`,
			name: "编辑成分",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsComponent/delete`,
			name: "删除成分",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    staff:{
		lists: {
			url: `${config.API_URL}/adminapi/dept.staff/lists`,
			name: "获取员工列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/dept.staff/add`,
            name: "添加员工",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/dept.staff/edit`,
			name: "修改员工",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/dept.staff/delete`,
			name: "删除员工",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        depart: {
			url: `${config.API_URL}/adminapi/dept.staff/depart`,
			name: "员工离职",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    ReturnReason: {
        lists:{
            url: `${config.API_URL}/adminapi/shop.shopReturnReason/lists`,
            name: "获取退货原因列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopReturnReason/add`,
			name: "添加退货原因",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopReturnReason/edit`,
			name: "编辑退货原因",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/shop.shopReturnReason/delete`,
			name: "删除退货原因",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    deduction: {
        lists:{
            url: `${config.API_URL}/adminapi/finance.BillType/lists`,
            name: "获取扣款类型列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/finance.BillType/add`,
			name: "添加扣款类型",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/finance.BillType/edit`,
			name: "编辑扣款类型",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/finance.BillType/delete`,
			name: "删除扣款类型",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    clorPosition: {
        lists:{
            url: `${config.API_URL}/adminapi/material.shopMaterialColorPosition/lists`,
            name: "获取色位列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/material.shopMaterialColorPosition/add`,
			name: "添加色位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/material.shopMaterialColorPosition/edit`,
			name: "编辑色位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/material.shopMaterialColorPosition/delete`,
			name: "删除色位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    finish: {
        lists:{
            url: `${config.API_URL}/adminapi/shop.shopGroup/lists`,
            name: "获取后整组列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopGroup/add`,
			name: "添加后整组",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopGroup/edit`,
			name: "编辑后整组",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/shop.shopGroup/delete`,
			name: "删除后整组",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    wash: {
        lists:{
            url: `${config.API_URL}/adminapi/shop.shopWashMethod/lists`,
            name: "获取洗水列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopWashMethod/add`,
			name: "添加洗水",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopWashMethod/edit`,
			name: "编辑洗水",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/shop.shopWashMethod/delete`,
			name: "删除洗水",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
}
